package PTA2.ti6;

import java.math.BigInteger;
import java.util.Scanner;

/**
 * @author Lenovo
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        BigInteger sum =BigInteger.ZERO;
        while (scanner.hasNextLine()) {
            String line = scanner.nextLine();
            if("e".equalsIgnoreCase(line)){
                break;
            }
            BigInteger number =new BigInteger(line);
            sum = sum.add(number);
        }
        System.out.println(sum);
        scanner.close();


    }
}
